class CreateDownloads < ActiveRecord::Migration
  def change
    create_table :downloads do |t|
      t.string :title, :limit => 125, :null => false
      t.integer :status, :default => 0, :null => false
      t.string :remark, :null => false
      t.integer :category, :null => false
      t.string :version, :null => false
      t.string :pubtime, :null=> false
      t.string :filesize, :null => false
      t.string :downurl, :null => false

      t.timestamps
    end
  end
end
